﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DiemChapNhanThe.Data;
using DiemChapNhanThe.Entities;
using System.Data;

public partial class Gioi_Thieu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            Bind_Data();
            ltrTieude.Text = "Giới Thiệu";
        }
    }
    protected void Bind_Data()
    {
        int TotalRows = 0;
        string WhereClause = "1=1";
        TList<GioiThieu> Tlist_GioiThieu = DataRepository.GioiThieuProvider.GetPaged(WhereClause, "NgayCapNhat DESC", 0, 1, out TotalRows);
        dlGioiThieu.DataSource = Tlist_GioiThieu;
        dlGioiThieu.DataBind();
    }
}